package org.jeecg.modules.charge.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.entity.basedata.BaseRoom;
import org.jeecg.entity.charge.ChargeFeeRule;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 收费规则
 * @Author: jeecg-boot
 * @Date:   2021-06-24
 * @Version: V1.0
 */
public interface ChargeFeeRuleMapper extends BaseMapper<ChargeFeeRule> {

    List<ChargeFeeRule> findPage(Page<ChargeFeeRule> page, @Param("bean") ChargeFeeRule chargeFeeRule);

    List<BaseRoom> getRoomInfo(@Param("roomIds") List<String> roomIds,@Param("feeId") String feeId);

    List<BaseRoom> getAllRoomInfo(@Param("projectId") String projectId);

    Integer getFeeRoomRule(@Param("feeRuleId") String id);

    List<ChargeFeeRule> getByFeeId(@Param("feeId") String feeId);

    List<ChargeFeeRule> queryByProjectId(@Param("projectId") String projectId);

    ChargeFeeRule getByFeeIdAndRoomId(@Param("feeId") String feeId,@Param("roomId") String roomId);

    String selectFeeId(@Param("roomId") String roomId, @Param("feeItemId") String feeItemId);
}
